//
//  firstViewController.m
//  xiaoqianqian
//
//  Created by sdzhqy on 2017/3/14.
//  Copyright © 2017年 sdzhqy. All rights reserved.
//

#import "firstViewController.h"

@interface firstViewController ()<UITableViewDelegate,UITableViewDataSource>
{
    UITableView *tab;
    UIAlertController *alert;
}

@end
static NSString *identy=@"xiaoxicell";
@implementation firstViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor=[UIColor greenColor];
//    alert=[UIAlertController alertControllerWithTitle:@"警告" message:@"网络故障请稍后重试" preferredStyle:UIAlertControllerStyleAlert];
//    
//    [self presentViewController:alert animated:YES completion:^{
//        dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1.0 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
//            [self dismissViewControllerAnimated:YES completion:nil];
//        });
//    }];

}
-(void)_createlab
{
    UILabel *xiaoxilab=[[UILabel alloc]initWithFrame:CGRectMake(0, 0, 100, 200)];
    xiaoxilab.backgroundColor=[UIColor whiteColor];
    xiaoxilab.textColor=[UIColor blackColor];
    xiaoxilab.numberOfLines=0;
    xiaoxilab.textAlignment=NSTextAlignmentCenter;
    xiaoxilab.font=[UIFont systemFontOfSize:14];
    [self.view addSubview:xiaoxilab];
}
-(void)_createtab
{
    tab=[[UITableView alloc]initWithFrame:CGRectMake(0, 0, 200, 3000) style:UITableViewStylePlain];
    tab.delegate=self;
    tab.dataSource=self;
    tab.backgroundColor=[UIColor whiteColor];
    [self.view addSubview:tab];
}
-(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section
{
    return _xiaoxilist.count;
}
-(CGFloat)tableView:(UITableView *)tableView heightForRowAtIndexPath:(NSIndexPath *)indexPath
{
    return 20;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
